<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>gui2py: Fichero Fuente gui/graphic.py</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../edit.gif"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">gui2py
   &#160;<span id="projectnumber">0.9.3</span>
   </div>
   <div id="projectbrief">Interfaz de desarrollo de aplicaciones graficas</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generado por Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Buscar');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Página&#160;principal</span></a></li>
      <li><a href="../../namespaces.html"><span>Paquetes</span></a></li>
      <li><a href="../../annotated.html"><span>Clases</span></a></li>
      <li class="current"><a href="../../files.html"><span>Archivos</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Buscar" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../files.html"><span>Lista&#160;de&#160;archivos</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('de/d21/gui_2graphic_8py_source.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Todo</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Clases</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Archivos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Funciones</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Propiedades</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">graphic.py</div>  </div>
</div><!--header-->
<div class="contents">
<a href="../../de/d21/gui_2graphic_8py.html">Ir a la documentación de este archivo.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">#!/usr/bin/python</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"># -*- coding: utf-8 -*-</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="stringliteral">&quot;gui2py&#39;s Graphic facilities (encapsulate wx.Bitmap and wx.Color)&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;</div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;__author__ = <span class="stringliteral">&quot;Mariano Reingart (reingart@gmail.com)&quot;</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;__copyright__ = <span class="stringliteral">&quot;Copyright (C) 2013- Mariano Reingart&quot;</span> <span class="comment"># where applicable</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"># Initial implementation was based on PythonCard&#39;s graphic module, altought</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"># some of it was redesigned and overhauled a lot (specially Color)</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="keyword">import</span> os</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="keyword">import</span> warnings</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="keyword">import</span> wx</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="keywordflow">try</span>:</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;    <span class="keywordflow">try</span>:</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;        <span class="keyword">import</span> Image</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    <span class="keywordflow">except</span> ImportError:</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;        <span class="keyword">from</span> PIL <span class="keyword">import</span> Image</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    <span class="comment"># necessary to avoid name collision with Image class</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    <span class="keyword">from</span> Image <span class="keyword">import</span> fromstring</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;    PIL_FOUND = 1</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keywordflow">except</span> ImportError:</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    PIL_FOUND = 0</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="keyword">def </span><a class="code" href="../../d9/dbc/namespacegui_1_1graphic.html#a3032fd84f4d34f930e631a9a7769ee15">pil_to_image</a>(pilImage):</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    <span class="keywordflow">if</span> (pilImage.mode != <span class="stringliteral">&#39;RGB&#39;</span>):</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;        pilImage = pilImage.convert(<span class="stringliteral">&#39;RGB&#39;</span>)</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    imageData = pilImage.tostring(<span class="stringliteral">&#39;raw&#39;</span>, <span class="stringliteral">&#39;RGB&#39;</span>)</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    img = wx.EmptyImage(pilImage.size[0], pilImage.size[1])</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    img.SetData(imageData)</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <span class="keywordflow">return</span> img</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keyword">def </span><a class="code" href="../../d9/dbc/namespacegui_1_1graphic.html#a34a74b0876cc8259bb244438f25b4e9c">pil_to_bitmap</a>(image):</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <span class="keywordflow">return</span> wx.BitmapFromImage(<a class="code" href="../../d9/dbc/namespacegui_1_1graphic.html#a3032fd84f4d34f930e631a9a7769ee15">pil_to_image</a>(image))</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="keyword">def </span><a class="code" href="../../d9/dbc/namespacegui_1_1graphic.html#a01c89e7e4a970b1919a538809ad0f766">bitmap_to_pil</a>(bmp):</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    imageData = wx.ImageFromBitmap(bmp).GetData()</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    imagePIL = fromstring(<span class="stringliteral">&#39;RGB&#39;</span>, (bmp.get_width(), bmp.get_height()), imageData)</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    imagePIL = imagePIL.convert(<span class="stringliteral">&#39;RGB&#39;</span>)</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keywordflow">return</span> imagePIL</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="keyword">def </span><a class="code" href="../../d9/dbc/namespacegui_1_1graphic.html#ac776c99750a2e420a8e4bb312e157556">numeric_array_to_image</a>(array):</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    height, width = array.shape[:2]</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    img = wx.EmptyImage(width, height)</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    img.SetData(array.tostring())</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="keywordflow">return</span> img</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="keyword">def </span><a class="code" href="../../d9/dbc/namespacegui_1_1graphic.html#aa1280562147624262a72e3d2a417471e">bitmap_type</a>(filename):</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="stringliteral">&quot;&quot;&quot;</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="stringliteral">    Get the type of an image from the file&#39;s extension ( .jpg, etc. )</span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="stringliteral">    &quot;&quot;&quot;</span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keywordflow">if</span> filename == <span class="stringliteral">&#39;&#39;</span>:</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        <span class="keywordflow">return</span> <span class="keywordtype">None</span></div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    name, ext = os.path.splitext(filename)</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    ext = ext[1:].upper()</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keywordflow">if</span> ext == <span class="stringliteral">&#39;BMP&#39;</span>:</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        <span class="keywordflow">return</span> wx.BITMAP_TYPE_BMP</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <span class="keywordflow">elif</span> ext == <span class="stringliteral">&#39;GIF&#39;</span>:</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        <span class="keywordflow">return</span> wx.BITMAP_TYPE_GIF</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="keywordflow">elif</span> ext == <span class="stringliteral">&#39;JPG&#39;</span> <span class="keywordflow">or</span> ext == <span class="stringliteral">&#39;JPEG&#39;</span>:</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        <span class="keywordflow">return</span> wx.BITMAP_TYPE_JPEG</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="keywordflow">elif</span> ext == <span class="stringliteral">&#39;PCX&#39;</span>:</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        <span class="keywordflow">return</span> wx.BITMAP_TYPE_PCX</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="keywordflow">elif</span> ext == <span class="stringliteral">&#39;PICT&#39;</span>:</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        <span class="keywordflow">return</span> wx.BITMAP_TYPE_PICT</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keywordflow">elif</span> ext == <span class="stringliteral">&#39;PNG&#39;</span>:</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        <span class="keywordflow">return</span> wx.BITMAP_TYPE_PNG</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <span class="keywordflow">elif</span> ext == <span class="stringliteral">&#39;PNM&#39;</span>:</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        <span class="keywordflow">return</span> wx.BITMAP_TYPE_PNM</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <span class="keywordflow">elif</span> ext == <span class="stringliteral">&#39;TIF&#39;</span> <span class="keywordflow">or</span> ext == <span class="stringliteral">&#39;TIFF&#39;</span>:</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        <span class="keywordflow">return</span> wx.BITMAP_TYPE_TIF</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <span class="keywordflow">elif</span> ext == <span class="stringliteral">&#39;XBM&#39;</span>:</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        <span class="keywordflow">return</span> wx.BITMAP_TYPE_XBM</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="keywordflow">elif</span> ext == <span class="stringliteral">&#39;XPM&#39;</span>:</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;        <span class="keywordflow">return</span> wx.BITMAP_TYPE_XPM</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="keywordflow">else</span>:</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        <span class="comment"># KEA 2001-10-10</span></div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        <span class="comment"># rather than throw an exception, we could try and have wxPython figure out the image</span></div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        <span class="comment"># type by returning wxBITMAP_TYPE_ANY</span></div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;        <span class="keywordflow">raise</span> RuntimeErro(<span class="stringliteral">&#39;invalid graphics format&#39;</span>)    <span class="comment"># should throw an exception here</span></div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="keyword">def </span><a class="code" href="../../d9/dbc/namespacegui_1_1graphic.html#aacbb44e3d42da4a9f7eef64b33558486">save_window_screenshot</a>(w, path):</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    bmp = wx.EmptyBitmap(w.size[0], w.size[1])</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    memdc = wx.MemoryDC()</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    memdc.SelectObject(bmp)</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    dc = wx.WindowDC(w)</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    memdc.BlitPointSize((0, 0), w.size, dc, (0, 0))</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    bmp.save_file(path, <a class="code" href="../../d9/dbc/namespacegui_1_1graphic.html#aa1280562147624262a72e3d2a417471e">bitmap_type</a>(path))</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    dc = <span class="keywordtype">None</span></div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    memdc.SelectObject(wx.NullBitmap)</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    memdc = <span class="keywordtype">None</span></div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    bmp = <span class="keywordtype">None</span></div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="keyword">class </span>Bitmap:</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a8e9f6cda9714a0ad72432850d7faef6b">  104</a></span>&#160;    <span class="keyword">def </span><a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a8e9f6cda9714a0ad72432850d7faef6b">__init__</a>(self, filename=None, size=(-1, -1)):</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        <span class="keywordflow">if</span> filename <span class="keywordflow">is</span> <span class="keywordtype">None</span> <span class="keywordflow">or</span> filename == <span class="stringliteral">&#39;&#39;</span>:</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;            self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a228ec6d3f328541295815ef4b9803c80">_filename</a> = <span class="keywordtype">None</span></div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        <span class="keywordflow">else</span>:</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;            self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a228ec6d3f328541295815ef4b9803c80">_filename</a> = filename</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        <span class="comment"># KEA 2004-07-27</span></div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        <span class="comment"># Mac checks that the bitmap is Ok() so need</span></div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        <span class="comment"># to use a valid size</span></div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;        <span class="keywordflow">if</span> (self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a228ec6d3f328541295815ef4b9803c80">_filename</a> <span class="keywordflow">is</span> <span class="keywordtype">None</span>) <span class="keywordflow">and</span> (tuple(size) == (-1, -1)):</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;            self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a98f69fb8a9a5170032884027c2bc6f7e">_size</a> = (10, 10)</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        <span class="keywordflow">else</span>:</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;            self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a98f69fb8a9a5170032884027c2bc6f7e">_size</a> = size</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;        self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a45f097cc76d8e72b57442bb503d13ad7">_type</a> = <span class="keywordtype">None</span></div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#abc30eca062ea530aa220f7d5c3ba7ec9">load_file</a>(self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a228ec6d3f328541295815ef4b9803c80">_filename</a>, self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a98f69fb8a9a5170032884027c2bc6f7e">_size</a>)</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;</div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#aa4a4dd427819b1f9ab28bc4c3b6673b1">  119</a></span>&#160;    <span class="keyword">def </span><a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#aa4a4dd427819b1f9ab28bc4c3b6673b1">get_bits</a>( self ) :</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;        <span class="keywordflow">return</span> self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#abcfbc09e585406e50fc666e3c77ead59">_bits</a></div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#ace6b979a3ca563888de75c5ffe9b20c8">  122</a></span>&#160;    <span class="keyword">def </span><a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#ace6b979a3ca563888de75c5ffe9b20c8">set_bits</a>( self, aWxBitmap ) :</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#abcfbc09e585406e50fc666e3c77ead59">_bits</a> = aWxBitmap</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a72895998bd76cfbd2599c71c525c0cdc">  125</a></span>&#160;    <span class="keyword">def </span><a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a72895998bd76cfbd2599c71c525c0cdc">set_pil_bits</a>(self, image):</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;        self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#abcfbc09e585406e50fc666e3c77ead59">_bits</a> = <a class="code" href="../../d9/dbc/namespacegui_1_1graphic.html#a34a74b0876cc8259bb244438f25b4e9c">pil_to_bitmap</a>(image)</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;</div>
<div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a17b4de414209e284d5e39d16d34f3b00">  128</a></span>&#160;    <span class="keyword">def </span><a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a17b4de414209e284d5e39d16d34f3b00">get_pil_bits</a>(self):</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../d9/dbc/namespacegui_1_1graphic.html#a01c89e7e4a970b1919a538809ad0f766">bitmap_to_pil</a>(self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#abcfbc09e585406e50fc666e3c77ead59">_bits</a>)</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div>
<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#adecacfd695d87ebba000c026e1dda85f">  131</a></span>&#160;    <span class="keyword">def </span><a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#adecacfd695d87ebba000c026e1dda85f">set_image_bits</a>(self, image):</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;        self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#abcfbc09e585406e50fc666e3c77ead59">_bits</a> = wx.BitmapFromImage(image)</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div>
<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a878a334b246a4345bdd19c23d9d4eb91">  134</a></span>&#160;    <span class="keyword">def </span><a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a878a334b246a4345bdd19c23d9d4eb91">get_image_bits</a>(self):</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;        <span class="keywordflow">return</span> wx.ImageFromBitmap(self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#abcfbc09e585406e50fc666e3c77ead59">_bits</a>)</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;</div>
<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a567fc278e8d958c2cb8c88f660a498a5">  137</a></span>&#160;    <span class="keyword">def </span><a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a567fc278e8d958c2cb8c88f660a498a5">get_height</a>( self ) :</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;        <span class="keywordflow">return</span> self._bits.GetHeight()</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;</div>
<div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a5f4f47afcbe9c4dced5c565387ac040c">  140</a></span>&#160;    <span class="keyword">def </span><a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a5f4f47afcbe9c4dced5c565387ac040c">get_width</a>( self ) :</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;        <span class="keywordflow">return</span> self._bits.GetWidth()</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;</div>
<div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a64098967036054c12f3dd1528172083e">  143</a></span>&#160;    <span class="keyword">def </span><a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a64098967036054c12f3dd1528172083e">get_size</a>( self ) :</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;        <span class="keywordflow">return</span> (self._bits.get_width(), self._bits.get_height())</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    <span class="comment"># KEA special handling for -2 size option</span></div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a87322ac5a4a6ad42fea17458dc18b09d">  147</a></span>&#160;    <span class="keyword">def </span><a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a87322ac5a4a6ad42fea17458dc18b09d">set_size</a>( self, aSize ):</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;        <span class="keywordflow">raise</span> NotImplementedError</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;</div>
<div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a663d53c53ed4b013646b98b26bf766a7">  150</a></span>&#160;    <span class="keyword">def </span><a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a663d53c53ed4b013646b98b26bf766a7">get_type</a>( self ) :</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;        <span class="keywordflow">return</span>  self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a45f097cc76d8e72b57442bb503d13ad7">_type</a></div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;</div>
<div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a0d86d5e82bf7e36d5f3b72a193289123">  153</a></span>&#160;    <span class="keyword">def </span><a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a0d86d5e82bf7e36d5f3b72a193289123">_getbitmap_type</a>( self, filename ) :</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;        <span class="stringliteral">&quot;&quot;&quot;</span></div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;<span class="stringliteral">        Get the type of an image from the file&#39;s extension ( .jpg, etc. )</span></div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;<span class="stringliteral">        &quot;&quot;&quot;</span></div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;        <span class="comment"># KEA 2001-07-27</span></div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;        <span class="comment"># was</span></div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;        <span class="comment">#name, ext = filename.split( &#39;.&#39; )</span></div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;        <span class="comment">#ext = ext.upper()</span></div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;        <span class="keywordflow">if</span> filename <span class="keywordflow">is</span> <span class="keywordtype">None</span> <span class="keywordflow">or</span> filename == <span class="stringliteral">&#39;&#39;</span>:</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;            <span class="keywordflow">return</span> <span class="keywordtype">None</span></div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;        name, ext = os.path.splitext(filename)</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;        ext = ext[1:].upper()</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;        <span class="keywordflow">if</span> ext == <span class="stringliteral">&#39;BMP&#39;</span>:</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;            <span class="keywordflow">return</span> wx.BITMAP_TYPE_BMP</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        <span class="keywordflow">elif</span> ext == <span class="stringliteral">&#39;GIF&#39;</span>:</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;            <span class="keywordflow">return</span> wx.BITMAP_TYPE_GIF</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;        <span class="keywordflow">elif</span> ext == <span class="stringliteral">&#39;JPG&#39;</span> <span class="keywordflow">or</span> ext == <span class="stringliteral">&#39;JPEG&#39;</span>:</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;            <span class="keywordflow">return</span> wx.BITMAP_TYPE_JPEG</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;        <span class="keywordflow">elif</span> ext == <span class="stringliteral">&#39;PCX&#39;</span>:</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;            <span class="keywordflow">return</span> wx.BITMAP_TYPE_PCX</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;        <span class="comment">#elif ext == &#39;PICT&#39;:</span></div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;        <span class="comment">#    return wx.BITMAP_TYPE_PICT</span></div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;        <span class="keywordflow">elif</span> ext == <span class="stringliteral">&#39;PNG&#39;</span>:</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;            <span class="keywordflow">return</span> wx.BITMAP_TYPE_PNG</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;        <span class="keywordflow">elif</span> ext == <span class="stringliteral">&#39;PNM&#39;</span>:</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;            <span class="keywordflow">return</span> wx.BITMAP_TYPE_PNM</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;        <span class="keywordflow">elif</span> ext == <span class="stringliteral">&#39;TIF&#39;</span> <span class="keywordflow">or</span> ext == <span class="stringliteral">&#39;TIFF&#39;</span>:</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;            <span class="keywordflow">return</span> wx.BITMAP_TYPE_TIF</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;        <span class="keywordflow">elif</span> ext == <span class="stringliteral">&#39;XBM&#39;</span>:</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;            <span class="keywordflow">return</span> wx.BITMAP_TYPE_XBM</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;        <span class="keywordflow">elif</span> ext == <span class="stringliteral">&#39;XPM&#39;</span>:</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;            <span class="keywordflow">return</span> wx.BITMAP_TYPE_XPM</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;        <span class="keywordflow">else</span>:</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;            <span class="comment"># KEA 2001-10-10</span></div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;            <span class="comment"># rather than throw an exception, we could try and have wxPython figure out the image</span></div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;            <span class="comment"># type by returning wxBITMAP_TYPE_ANY</span></div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;            <span class="keywordflow">raise</span> RuntimeError(<span class="stringliteral">&#39;invalid graphics format&#39;</span>)    <span class="comment"># should throw an exception here</span></div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    <span class="comment"># xbm format doesn&#39;t seem to work on Windows</span></div>
<div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#abc30eca062ea530aa220f7d5c3ba7ec9">  193</a></span>&#160;    <span class="keyword">def </span><a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#abc30eca062ea530aa220f7d5c3ba7ec9">load_file</a>(self, filename=None, size=(-1, -1)):</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;        <span class="keywordflow">if</span> filename <span class="keywordflow">is</span> <span class="keywordtype">None</span> <span class="keywordflow">or</span> filename == <span class="stringliteral">&#39;&#39;</span>:</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;            self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a228ec6d3f328541295815ef4b9803c80">_filename</a> = <span class="keywordtype">None</span></div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;        <span class="keywordflow">elif</span> <span class="keywordflow">not</span> os.path.exists(filename):</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;            <span class="comment"># TODO: add an absoulte base path if it is relative</span></div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;            warnings.warn(<span class="stringliteral">&quot;Image %s not found&quot;</span> % filename, RuntimeWarning)</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;            self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a228ec6d3f328541295815ef4b9803c80">_filename</a> = <span class="keywordtype">None</span></div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;        <span class="keywordflow">else</span>:</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;            self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a228ec6d3f328541295815ef4b9803c80">_filename</a> = filename</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;        <span class="keywordflow">if</span> (self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a228ec6d3f328541295815ef4b9803c80">_filename</a> <span class="keywordflow">is</span> <span class="keywordtype">None</span>) <span class="keywordflow">and</span> (tuple(size) == (-1, -1)):</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;            self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a98f69fb8a9a5170032884027c2bc6f7e">_size</a> = (10, 10)</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;        <span class="keywordflow">else</span>:</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;            self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a98f69fb8a9a5170032884027c2bc6f7e">_size</a> = size</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;        self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a45f097cc76d8e72b57442bb503d13ad7">_type</a> = self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a0d86d5e82bf7e36d5f3b72a193289123">_getbitmap_type</a>(self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a228ec6d3f328541295815ef4b9803c80">_filename</a>)</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;        <span class="keywordflow">if</span> self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a45f097cc76d8e72b57442bb503d13ad7">_type</a> <span class="keywordflow">is</span> <span class="keywordtype">None</span>:</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;            self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#abcfbc09e585406e50fc666e3c77ead59">_bits</a> = wx.EmptyBitmap(self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a98f69fb8a9a5170032884027c2bc6f7e">_size</a>[0], self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a98f69fb8a9a5170032884027c2bc6f7e">_size</a>[1])</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;        <span class="keywordflow">else</span>:</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;            self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#abcfbc09e585406e50fc666e3c77ead59">_bits</a> = wx.Bitmap(self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a228ec6d3f328541295815ef4b9803c80">_filename</a>, self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a45f097cc76d8e72b57442bb503d13ad7">_type</a>)</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    <span class="comment"># attempting to save a GIF image will result in a zero length file</span></div>
<div class="line"><a name="l00215"></a><span class="lineno"><a class="line" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a7839834b7b11a46f829fc80e78555eb7">  215</a></span>&#160;    <span class="keyword">def </span><a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a7839834b7b11a46f829fc80e78555eb7">save_file</a>(self, filename=None):</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;        <span class="keywordflow">if</span> filename <span class="keywordflow">is</span> <span class="keywordtype">None</span>:</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;            filename = self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a228ec6d3f328541295815ef4b9803c80">_filename</a></div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;        <span class="keywordflow">try</span>:</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;            self._bits.save_file(filename, self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a0d86d5e82bf7e36d5f3b72a193289123">_getbitmap_type</a>(filename))</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;        <span class="keywordflow">except</span>:</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;            <span class="keywordflow">pass</span></div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;</div>
<div class="line"><a name="l00223"></a><span class="lineno"><a class="line" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a395c243be4e976b0435ff318657e5d75">  223</a></span>&#160;    <span class="keyword">def </span><a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a395c243be4e976b0435ff318657e5d75">rotate90</a>(self, clockwise=1):</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;        image = wx.ImageFromBitmap(self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#abcfbc09e585406e50fc666e3c77ead59">_bits</a>)</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;        self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#abcfbc09e585406e50fc666e3c77ead59">_bits</a> = wx.BitmapFromImage(image.Rotate90(clockwise))</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;        </div>
<div class="line"><a name="l00227"></a><span class="lineno"><a class="line" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a66e9bbd2915a1932ec088220274638ca">  227</a></span>&#160;    <span class="keyword">def </span><a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a66e9bbd2915a1932ec088220274638ca">rescale</a>(self, width, height, quality=100):</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;        <span class="keywordflow">print</span> <span class="stringliteral">&quot;rescaling to&quot;</span>, width, height</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;        <span class="keywordflow">if</span> self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#abcfbc09e585406e50fc666e3c77ead59">_bits</a>:</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;            <span class="keywordflow">try</span>:</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;                image = wx.ImageFromBitmap(self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#abcfbc09e585406e50fc666e3c77ead59">_bits</a>)</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;                self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#abcfbc09e585406e50fc666e3c77ead59">_bits</a> = wx.BitmapFromImage(image.Rescale(width, height, quality))</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;                self.<a class="code" href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#afe4a15b385fe5eeb34797d89b5b57ddb">size</a> = (width, height)</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;            <span class="keywordflow">except</span> Exception, e:</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;                <span class="keywordflow">print</span> <span class="stringliteral">&quot;cannot rescale:&quot;</span>, e</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;<span class="keyword">class </span><a class="code" href="../../d2/d3a/classgui_1_1graphic_1_1Color.html">Color</a>(wx.Colour):</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;    <span class="stringliteral">&quot;Helper to represent the colour and detect if a colour is the default&quot;</span></div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;    </div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;    default = <span class="keyword">True</span></div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;    </div>
<div class="line"><a name="l00243"></a><span class="lineno"><a class="line" href="../../d2/d3a/classgui_1_1graphic_1_1Color.html#a6c463bea2505e8121295186de0884976">  243</a></span>&#160;    <span class="keyword">def </span><a class="code" href="../../d2/d3a/classgui_1_1graphic_1_1Color.html#a6c463bea2505e8121295186de0884976">__repr__</a>(self):</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;        <span class="keywordflow">if</span> <span class="keywordflow">not</span> self.<a class="code" href="../../d2/d3a/classgui_1_1graphic_1_1Color.html#a4860336d113132974c48dcc2d1f4a675">default</a>:</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;            <span class="keywordflow">return</span> repr(self.GetAsString(wx.C2S_HTML_SYNTAX))</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;        <span class="keywordflow">else</span>:</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;            <span class="keywordflow">return</span> <span class="stringliteral">&#39;None&#39;</span></div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;</div>
<div class="ttc" id="classgui_1_1graphic_1_1Bitmap_html_ace6b979a3ca563888de75c5ffe9b20c8"><div class="ttname"><a href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#ace6b979a3ca563888de75c5ffe9b20c8">gui.graphic.Bitmap.set_bits</a></div><div class="ttdeci">def set_bits</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00122">graphic.py:122</a></div></div>
<div class="ttc" id="classgui_1_1graphic_1_1Bitmap_html_a663d53c53ed4b013646b98b26bf766a7"><div class="ttname"><a href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a663d53c53ed4b013646b98b26bf766a7">gui.graphic.Bitmap.get_type</a></div><div class="ttdeci">def get_type</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00150">graphic.py:150</a></div></div>
<div class="ttc" id="classgui_1_1graphic_1_1Bitmap_html_a5f4f47afcbe9c4dced5c565387ac040c"><div class="ttname"><a href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a5f4f47afcbe9c4dced5c565387ac040c">gui.graphic.Bitmap.get_width</a></div><div class="ttdeci">def get_width</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00140">graphic.py:140</a></div></div>
<div class="ttc" id="classgui_1_1graphic_1_1Bitmap_html_abcfbc09e585406e50fc666e3c77ead59"><div class="ttname"><a href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#abcfbc09e585406e50fc666e3c77ead59">gui.graphic.Bitmap._bits</a></div><div class="ttdeci">_bits</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00123">graphic.py:123</a></div></div>
<div class="ttc" id="namespacegui_1_1graphic_html_a34a74b0876cc8259bb244438f25b4e9c"><div class="ttname"><a href="../../d9/dbc/namespacegui_1_1graphic.html#a34a74b0876cc8259bb244438f25b4e9c">gui.graphic.pil_to_bitmap</a></div><div class="ttdeci">def pil_to_bitmap</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00036">graphic.py:36</a></div></div>
<div class="ttc" id="classgui_1_1graphic_1_1Bitmap_html_a66e9bbd2915a1932ec088220274638ca"><div class="ttname"><a href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a66e9bbd2915a1932ec088220274638ca">gui.graphic.Bitmap.rescale</a></div><div class="ttdeci">def rescale</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00227">graphic.py:227</a></div></div>
<div class="ttc" id="classgui_1_1graphic_1_1Bitmap_html_a45f097cc76d8e72b57442bb503d13ad7"><div class="ttname"><a href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a45f097cc76d8e72b57442bb503d13ad7">gui.graphic.Bitmap._type</a></div><div class="ttdeci">_type</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00116">graphic.py:116</a></div></div>
<div class="ttc" id="namespacegui_1_1graphic_html_a01c89e7e4a970b1919a538809ad0f766"><div class="ttname"><a href="../../d9/dbc/namespacegui_1_1graphic.html#a01c89e7e4a970b1919a538809ad0f766">gui.graphic.bitmap_to_pil</a></div><div class="ttdeci">def bitmap_to_pil</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00039">graphic.py:39</a></div></div>
<div class="ttc" id="classgui_1_1graphic_1_1Bitmap_html_a64098967036054c12f3dd1528172083e"><div class="ttname"><a href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a64098967036054c12f3dd1528172083e">gui.graphic.Bitmap.get_size</a></div><div class="ttdeci">def get_size</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00143">graphic.py:143</a></div></div>
<div class="ttc" id="classgui_1_1graphic_1_1Color_html"><div class="ttname"><a href="../../d2/d3a/classgui_1_1graphic_1_1Color.html">gui.graphic.Color</a></div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00238">graphic.py:238</a></div></div>
<div class="ttc" id="classgui_1_1graphic_1_1Bitmap_html_a567fc278e8d958c2cb8c88f660a498a5"><div class="ttname"><a href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a567fc278e8d958c2cb8c88f660a498a5">gui.graphic.Bitmap.get_height</a></div><div class="ttdeci">def get_height</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00137">graphic.py:137</a></div></div>
<div class="ttc" id="classgui_1_1graphic_1_1Bitmap_html_a7839834b7b11a46f829fc80e78555eb7"><div class="ttname"><a href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a7839834b7b11a46f829fc80e78555eb7">gui.graphic.Bitmap.save_file</a></div><div class="ttdeci">def save_file</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00215">graphic.py:215</a></div></div>
<div class="ttc" id="classgui_1_1graphic_1_1Bitmap_html_a72895998bd76cfbd2599c71c525c0cdc"><div class="ttname"><a href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a72895998bd76cfbd2599c71c525c0cdc">gui.graphic.Bitmap.set_pil_bits</a></div><div class="ttdeci">def set_pil_bits</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00125">graphic.py:125</a></div></div>
<div class="ttc" id="namespacegui_1_1graphic_html_a3032fd84f4d34f930e631a9a7769ee15"><div class="ttname"><a href="../../d9/dbc/namespacegui_1_1graphic.html#a3032fd84f4d34f930e631a9a7769ee15">gui.graphic.pil_to_image</a></div><div class="ttdeci">def pil_to_image</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00028">graphic.py:28</a></div></div>
<div class="ttc" id="classgui_1_1graphic_1_1Bitmap_html_a17b4de414209e284d5e39d16d34f3b00"><div class="ttname"><a href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a17b4de414209e284d5e39d16d34f3b00">gui.graphic.Bitmap.get_pil_bits</a></div><div class="ttdeci">def get_pil_bits</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00128">graphic.py:128</a></div></div>
<div class="ttc" id="classgui_1_1graphic_1_1Color_html_a6c463bea2505e8121295186de0884976"><div class="ttname"><a href="../../d2/d3a/classgui_1_1graphic_1_1Color.html#a6c463bea2505e8121295186de0884976">gui.graphic.Color.__repr__</a></div><div class="ttdeci">def __repr__</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00243">graphic.py:243</a></div></div>
<div class="ttc" id="classgui_1_1graphic_1_1Bitmap_html_a878a334b246a4345bdd19c23d9d4eb91"><div class="ttname"><a href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a878a334b246a4345bdd19c23d9d4eb91">gui.graphic.Bitmap.get_image_bits</a></div><div class="ttdeci">def get_image_bits</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00134">graphic.py:134</a></div></div>
<div class="ttc" id="classgui_1_1graphic_1_1Bitmap_html_a8e9f6cda9714a0ad72432850d7faef6b"><div class="ttname"><a href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a8e9f6cda9714a0ad72432850d7faef6b">gui.graphic.Bitmap.__init__</a></div><div class="ttdeci">def __init__</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00104">graphic.py:104</a></div></div>
<div class="ttc" id="classgui_1_1graphic_1_1Bitmap_html_aa4a4dd427819b1f9ab28bc4c3b6673b1"><div class="ttname"><a href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#aa4a4dd427819b1f9ab28bc4c3b6673b1">gui.graphic.Bitmap.get_bits</a></div><div class="ttdeci">def get_bits</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00119">graphic.py:119</a></div></div>
<div class="ttc" id="namespacegui_1_1graphic_html_aacbb44e3d42da4a9f7eef64b33558486"><div class="ttname"><a href="../../d9/dbc/namespacegui_1_1graphic.html#aacbb44e3d42da4a9f7eef64b33558486">gui.graphic.save_window_screenshot</a></div><div class="ttdeci">def save_window_screenshot</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00089">graphic.py:89</a></div></div>
<div class="ttc" id="classgui_1_1graphic_1_1Bitmap_html_adecacfd695d87ebba000c026e1dda85f"><div class="ttname"><a href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#adecacfd695d87ebba000c026e1dda85f">gui.graphic.Bitmap.set_image_bits</a></div><div class="ttdeci">def set_image_bits</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00131">graphic.py:131</a></div></div>
<div class="ttc" id="classgui_1_1graphic_1_1Bitmap_html_a0d86d5e82bf7e36d5f3b72a193289123"><div class="ttname"><a href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a0d86d5e82bf7e36d5f3b72a193289123">gui.graphic.Bitmap._getbitmap_type</a></div><div class="ttdeci">def _getbitmap_type</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00153">graphic.py:153</a></div></div>
<div class="ttc" id="classgui_1_1graphic_1_1Bitmap_html_a395c243be4e976b0435ff318657e5d75"><div class="ttname"><a href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a395c243be4e976b0435ff318657e5d75">gui.graphic.Bitmap.rotate90</a></div><div class="ttdeci">def rotate90</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00223">graphic.py:223</a></div></div>
<div class="ttc" id="namespacegui_1_1graphic_html_aa1280562147624262a72e3d2a417471e"><div class="ttname"><a href="../../d9/dbc/namespacegui_1_1graphic.html#aa1280562147624262a72e3d2a417471e">gui.graphic.bitmap_type</a></div><div class="ttdeci">def bitmap_type</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00052">graphic.py:52</a></div></div>
<div class="ttc" id="classgui_1_1graphic_1_1Bitmap_html_a98f69fb8a9a5170032884027c2bc6f7e"><div class="ttname"><a href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a98f69fb8a9a5170032884027c2bc6f7e">gui.graphic.Bitmap._size</a></div><div class="ttdeci">_size</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00113">graphic.py:113</a></div></div>
<div class="ttc" id="classgui_1_1graphic_1_1Bitmap_html_a87322ac5a4a6ad42fea17458dc18b09d"><div class="ttname"><a href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a87322ac5a4a6ad42fea17458dc18b09d">gui.graphic.Bitmap.set_size</a></div><div class="ttdeci">def set_size</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00147">graphic.py:147</a></div></div>
<div class="ttc" id="classgui_1_1graphic_1_1Bitmap_html_abc30eca062ea530aa220f7d5c3ba7ec9"><div class="ttname"><a href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#abc30eca062ea530aa220f7d5c3ba7ec9">gui.graphic.Bitmap.load_file</a></div><div class="ttdeci">def load_file</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00193">graphic.py:193</a></div></div>
<div class="ttc" id="namespacegui_1_1graphic_html_ac776c99750a2e420a8e4bb312e157556"><div class="ttname"><a href="../../d9/dbc/namespacegui_1_1graphic.html#ac776c99750a2e420a8e4bb312e157556">gui.graphic.numeric_array_to_image</a></div><div class="ttdeci">def numeric_array_to_image</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00045">graphic.py:45</a></div></div>
<div class="ttc" id="classgui_1_1graphic_1_1Bitmap_html_afe4a15b385fe5eeb34797d89b5b57ddb"><div class="ttname"><a href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#afe4a15b385fe5eeb34797d89b5b57ddb">gui.graphic.Bitmap.size</a></div><div class="ttdeci">size</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00233">graphic.py:233</a></div></div>
<div class="ttc" id="classgui_1_1graphic_1_1Color_html_a4860336d113132974c48dcc2d1f4a675"><div class="ttname"><a href="../../d2/d3a/classgui_1_1graphic_1_1Color.html#a4860336d113132974c48dcc2d1f4a675">gui.graphic.Color.default</a></div><div class="ttdeci">default</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00241">graphic.py:241</a></div></div>
<div class="ttc" id="classgui_1_1graphic_1_1Bitmap_html_a228ec6d3f328541295815ef4b9803c80"><div class="ttname"><a href="../../dd/d51/classgui_1_1graphic_1_1Bitmap.html#a228ec6d3f328541295815ef4b9803c80">gui.graphic.Bitmap._filename</a></div><div class="ttdeci">_filename</div><div class="ttdef"><b>Definition:</b> <a href="../../df/ddf/build_2lib_8linux-x86__64-2_87_2gui_2graphic_8py_source.html#l00106">graphic.py:106</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_be831313eee9167e67543a36aa74e60d.html">gui</a></li><li class="navelem"><a class="el" href="../../de/d21/gui_2graphic_8py.html">graphic.py</a></li>
    <li class="footer">Generado el Domingo, 7 de Diciembre de 2014 18:59:47 para gui2py por
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
